﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TowerDisplay : MonoBehaviour {
    public MeshRenderer render;
    public Tower tower;

	
	
	// Update is called once per frame
	void Update () {
        render.material.SetFloat("_Prograss", (float)tower.influencePoint / tower.MaxinfluencePoint);
        render.material.SetColor("_BarColor", PlayerColorTable.GetColor(tower.TowerFavor));
	}
}
